package cn.tsvtc.shop.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: Athena
 * @date: 2020/11/6 15:19
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orderdetail implements Serializable {

    private static final long serialVersionUID = 1L;
    private String id;
    private int orderID;
    private int productID;
    private String giftID;
    private String price;
    private int number;
    private String fee;// 配送费
    private String isComment;
    private String productName;
    private String total0;// 小计
    private String lowStocks;// n:库存不足；y:库存充足。默认n
    private String specInfo;//商品规格信息

    @Deprecated
    private int score;

    /**
     * 订单项是否存在商品库存不足
     */
    public static final String orderdetail_lowstocks_n = "n";// 不存在
    public static final String orderdetail_lowstocks_y = "y";// 库存不足

    /**
     * 订单项是否已评论
     */
    public static final String orderdetail_isComment_n = "n";// 未评论
    public static final String orderdetail_isComment_y = "y";// 已评论

    public void clear() {
        id = null;
        orderID = 0;
        productID = 0;
        giftID = null;

        price = null;
        number = 0;

        fee = null;
        isComment = null;
        productName = null;

        total0 = null;
        lowStocks = null;
        specInfo = null;
        score = 0;
    }

}
